package com.bit.strongbaby;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

class WordDBHelper extends SQLiteOpenHelper {

	public WordDBHelper(Context context) {
		super(context, "Eng.db", null, 2);
		

	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("create table baby_info (_id INTEGER PRIMARY KEY AUTOINCREMENT,"
				+ "name TEXT, pound INTEGER, month INTEGER);");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		db.execSQL("drop table if exists baby_info");
		onCreate(db);

	}

}
